﻿using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.Resolve;

namespace GammaJul.ReSharper.GammaXaml.Psi.Resolve {

	public class IsMethodOrPropertyFilter : SimpleSymbolFilter {

		public static readonly IsMethodOrPropertyFilter Instance = new IsMethodOrPropertyFilter();
		
		public override ResolveErrorType ErrorType {
			get { return ResolveErrorType.NOT_RESOLVED; }
		}

		public override bool Accepts(IDeclaredElement declaredElement, ISubstitution substitution) {
			return declaredElement is IMethod || declaredElement is IProperty;
		}

	}

}